/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-19
 * Time: 22:58
 */
class Parent {
    public void methodA(){
        System.out.println("父类方法");
    }
}
class Child extends Parent {
    public void methodB() {
        System.out.println("子类方法");
        methodA();// 直接调用父类方法
    }
}